.class public Lcom/philzhu/www/ddz/TipsCompare;
.super Ljava/lang/Object;
.source "TipsCompare.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator",
        "<",
        "Lcom/philzhu/www/ddz/CardsType;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public compare(Lcom/philzhu/www/ddz/CardsType;Lcom/philzhu/www/ddz/CardsType;)I
    .locals 6
    .parameter "o1"
    .parameter "o2"

    .prologue
    const/4 v5, 0x1

    const/4 v4, -0x1

    .line 7
    move-object v0, p1

    .line 8
    .local v0, c1:Lcom/philzhu/www/ddz/CardsType;
    move-object v1, p2

    .line 10
    .local v1, c2:Lcom/philzhu/www/ddz/CardsType;
    iget v2, v0, Lcom/philzhu/www/ddz/CardsType;->type:I

    iget v3, v1, Lcom/philzhu/www/ddz/CardsType;->type:I

    if-ge v2, v3, :cond_0

    move v2, v4

    .line 30
    :goto_0
    return v2

    .line 14
    :cond_0
    iget v2, v0, Lcom/philzhu/www/ddz/CardsType;->type:I

    iget v3, v1, Lcom/philzhu/www/ddz/CardsType;->type:I

    if-le v2, v3, :cond_1

    move v2, v5

    .line 16
    goto :goto_0

    .line 20
    :cond_1
    iget v2, v0, Lcom/philzhu/www/ddz/CardsType;->max:I

    iget v3, v1, Lcom/philzhu/www/ddz/CardsType;->max:I

    if-ge v2, v3, :cond_2

    move v2, v4

    .line 22
    goto :goto_0

    .line 24
    :cond_2
    iget v2, v0, Lcom/philzhu/www/ddz/CardsType;->max:I

    iget v3, v1, Lcom/philzhu/www/ddz/CardsType;->max:I

    if-le v2, v3, :cond_3

    move v2, v5

    .line 26
    goto :goto_0

    .line 30
    :cond_3
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 1
    check-cast p1, Lcom/philzhu/www/ddz/CardsType;

    check-cast p2, Lcom/philzhu/www/ddz/CardsType;

    invoke-virtual {p0, p1, p2}, Lcom/philzhu/www/ddz/TipsCompare;->compare(Lcom/philzhu/www/ddz/CardsType;Lcom/philzhu/www/ddz/CardsType;)I

    move-result v0

    return v0
.end method
